| |
| <!doctype html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="Generator" content="EditPlus®"> |
|
<meta name="Author" content=""> |
|
<meta name="Keywords" content=""> |
|
<meta name="Description" content=""> |
|
<title>Document</title> |
|
</head> |
|
<body> |
|
|
|
<a href="post.html">ตั้งคำถามใหม่</a> |
|
<table width="100%" border="0"> |
|
<tr bgcolor="#ffcc00"> |
|
<td width="10%" align="center">ลำดับ</td> |
|
<td>หัวข้อ</td> |
|
<td width="10%" align="center">วันที่</td> |
|
</tr> |
|
<?php |
|
include("connect.php"); |
|
|
|
$SQL = "select * from webboard where main_id=0 order by board_id desc"; |
|
$result = mysql_query($SQL) or die(mysql_error()); |
|
While($tmp= mysql_fetch_array($result)){ |
|
?> |
|
<tr bgcolor="#efefef"> |
|
<td align="center"><?php print $tmp["board_id"]?></td> |
|
<td><a href="view.php?board_id=<?php print $tmp["board_id"]?>"><?php print $tmp["title"]?></a> โดย <?php print $tmp["name"]?></td> |
|
<td align="center"><?php print $tmp["postdate"]?></td> |
|
</tr> |
|
<?php } ?> |
|
</table> |
|
|
|
</body> |
|
</html> |
|
|
| |